<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('phpcms','header'); ?>
<!--begin main-->
<div id="main">
  <div id="main_l" class="bdr_1">
    <!--位置导航-->
    <div id="position"><a href="">网站首页</a>公告内容页</div>
    <div id="content">
      <!--文章标题-->
  <?php if($announces) { ?>
      <h1><?php echo $title;?></h1>
      <!--基本属性-->
      <div id="text">发布人:<?php echo $username;?>&nbsp;有效期:
<?php if(($todate=='0000-00-00')) { ?>不限<?php } else { ?><?php echo $fromdate;?>至<?php echo $todate;?><?php } ?>
&nbsp;浏览次数:<?php echo $hits;?></div>
  <?php } else { ?>
      <div id="text">暂无公告信息</div>
  <?php } ?>

      <!--正文-->
      <div id="endtext">
        <p><?php echo $content;?></p>
      </div>
      <div class="clear"></div>
      <!--评论-->
    </div>
    <div class="clear"></div>
    </div>
  <div id="main_r">
    <h4>最新公告</h4>
    <div>
      <ul class="text_list">
  <?php if(is_array($announces)) foreach($announces AS $i => $announce) { ?>
<li><a href="<?php echo $MODULE['announce']['url'];?>?announceid=<?php echo $announce['announceid'];?>"><?php echo $announce['title'];?></a> </li>
  <?php } ?>
      </ul>
    </div>
  </div>
</div>
<!--end main-->
<?php include template('phpcms','footer'); ?>
